home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / mweb / MWEB Utils / ws295sdk.exe / Ws2sdkzp.exe / SAMPLES / LAYERED / MAKEFILE < prev    next >
Encoding:
Text File  |  1997-06-06  |  1.0 KB  |  49 lines

  1. !include <win32.mak>
  2.  
  3. !IFNDEF NODEBUG
  4. .cpp.obj:
  5.     $(cc) $(cdebug) $(cflags) $(cvarsdll) -DSTRICT -YX\
  6.         /D "DEBUG_TRACING"\
  7.         /D "TRACING" /Od /D "_DEBUG" $<
  8. !else
  9. .cpp.obj:
  10.     $(cc) $(cdebug) $(cflags) $(cvarsdll) -DSTRICT -YX -DNODEBUG $<
  11. !endif
  12. CPP_FILES= dbuffmgr.cpp\
  13.            doverlap.cpp\
  14.            dasyncw.cpp\
  15.            dworker.cpp\
  16.            dcatalog.cpp\
  17.            dcatitem.cpp\
  18.            dllmain.cpp\
  19.            dprovide.cpp\
  20.            dsocket.cpp\
  21.            spi.cpp\
  22.            trace.cpp\
  23.            dthook.cpp
  24.  
  25.  
  26. OBJS= $(CPP_FILES:.cpp=.obj)
  27.  
  28. all: lsp.dll inst_lsp.exe
  29.  
  30. lsp.dll: $(OBJS)
  31.     $(link) $(linkdebug) $(dlllflags) \
  32.     -map \
  33.     -export:WSPStartup \
  34.     -out:$*.dll $(OBJS) $(guilibsdll) ws2_32.lib
  35.  
  36. inst_lsp.obj: inst_lsp.cpp
  37.     $(cc) $(cdebug) $(cflags) $(cvars) inst_lsp.cpp
  38.  
  39. inst_lsp.exe: inst_lsp.obj
  40.     $(link) $(linkdebug) $(conlflags) -out:$*.exe inst_lsp.obj\
  41.         rpcrt4.lib $(conlibs) ws2_32.lib sporder.lib
  42.  
  43. clean:
  44.         -del *.obj
  45.     -del *.dll
  46.     -del *.pch
  47.     -del *.exp
  48.     -del lsp.lib
  49.